This is code description of the paper "Endogenous Treatment Models with Social Interactions", Lin and Vella 2024 JPE
There are four files:
Lin_Vella_202411_Exercise.R is the main code to get results of empirical study.
The data is "The National Longitudinal Study of Adolescent Health" of Carolina Population Center. The data used in the paper is the restricted-use part of the Add Health.
Though access can be granted from CPC at https://addhealth.cpc.unc.edu/data/#restricted-use.

Lin_Vella_Roy_MC202411.R is the code to conduct the Monte Carlo experiments in the paper.